{LAYOUT_CONTENT}
<div class="ui container">
	<div class="ui breadcrumb">
	<a class="section">BUG统计</a>
	<i class="right arrow icon divider"></i>
	<a class="section">详情</a>
	</div>
	<form class="ui grid form" action="{url('Bug/record')}" method="get">
		
		<div class="four wide field">
			<select class="ui dropdown" name="finder">
				<option value="">谁发现的</option>
				{loop $finder $val}
				<option value="{$val['finder']}" {if $val['finder']==$_GET['finder']}selected{/if}>{$val['finder']}</option>
				{/loop}
			</select>
		</div>
		<div class="four wide field">
			<select class="ui dropdown" name="level">
				<option value="">级别</option>				
				{loop $level $val}
				<option value="{$val['level']}" {if $val['level']==$_GET['level']}selected{/if}>{$val['level']}</option>
				{/loop}
			</select>
		</div>		
		<div class="four wide field">
			<select class="ui dropdown" name="project">
				<option value="">项目</option>
				{loop $project $val}
				<option value="{$val['project']}" {if $val['project']==$_GET['project']}selected{/if}>{$val['project']}</option>
				{/loop}
			</select>
		</div>
		
		<div class="four wide field">
		<button class="ui primary submit button" type="submit">提交</button>
		</div>
		</form>
	<table class="ui celled table">
	  <thead>
	    <tr><th>名称</th>
	    <th>级别</th>
	    <th>项目</th>
	    <th>发现人</th>
	    <th></th>
	  </tr></thead>
	  <tbody>
	    {loop $bug $val}
		<tr>
			<td><a href="{url('Bug/detail',['id'=>$val['id']])}">{$val['title']} </a></td>
			<td>{$val['level']}</td>
			<td>{$val['project']}</td>
			<td>{$val['finder']}</td>
			<td>
			<a class="ui button" href="{url('Bug/edit',['id'=>$val['id']])}">修改</a>
			<a class="ui button" href="{url('Bug/delete',['id'=>$val['id']])}">删除</a>
			</td>
		</tr>
		{/loop}
	    
	  </tbody>
	  <tfoot>
	    <tr><th colspan="5">
	      {$pagestring}
	    </th>
	  </tr></tfoot>
	</table>

</div>			
				
{/LAYOUT_CONTENT}
